<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<{include file="../Common/head.html"}>
	<link rel="stylesheet" href="<{$smarty.const.__PUBLIC__}>/Css/question.css" />
	<script	type="text/javascript" src="<{$smarty.const.__PUBLIC__}>/Js/ajaxquest.js"></script>
<!-- top 结束-->
	<div id='location'>
		<a href="">全部分类</a>
			<{foreach from=$mbx item=v}>
			&gt;&nbsp;<{if $v.cid==$askRow.cid}>&nbsp;&nbsp;
					  <{$v.title}>
					  <{else}>
					  &nbsp;<a href="<{$smarty.const.__APP__}>?c=category&cid=<{$v.cid}>&status=0"><{$v.title}></a>&nbsp;&nbsp; 
					  <{/if}>
			<{/foreach}>
	</div>

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<{if $askRow.solve == 1}>
						<div class='ans-state'></div>
						<{else}>
						<div class='ans-state wait'></div>
					<{/if}>
					<div class='answer'>
						<p class='ans-title'><{$askRow.content}>
							<b class='point'><{$askRow.reward}></b>
						</p>
					</div>
					<ul>
						<li><a href="<{$smarty.const.__APP__}>?c=home&uid=<{$askRow.uuid}>"><{$askRow.username}></a></li>
						<li><i class='level lv<{$lv}>' title='Level <{$lv}>'></i></li>
						<li><{$askRow.time|date_format:"%Y-%m-%d"}></li>
				
					</ul>
					<div class='ianswer'>
						<form action="javascript:;" id="answerform" style="position:relative;">
							<p style="float:left;">我来回答 </p><h3 id="inputError" style="color:red;float:right;display:none;">请输入2-200个字符</h3>
							<{if isset($smarty.session.uid)}>
								<input type="hidden" name="uid" value='<{$smarty.session.uid}>' />
								<textarea id="questcontent" name="content" maxlength="200"></textarea>
							<{else}>
									<h3 class="plaselogin" style="position:absolute;font-size:25px;left:40%;top:40%;"><a href="javascript:;" onclick="$('.login').click()">请您先登陆</a></h3>
									<textarea id="questcontent" name="content" disabled="disabled"></textarea>
									<input type="hidden" name="uid" value='' />
							<{/if}>
							<input type="hidden" name='qid' value='<{$askRow.asid}>'>
							<input type="submit" value='提交回答' />
						</form>
						
					</div>
					<!-- 满意回答 -->
					<{if $askRow.solve == 1}>
					<div class='ans-right'>
						<p class='title'><i></i>满意回答<span></span></p>
						<p class='ans-cons'><{$acceptdata.content}></p>
						<dl>
							<dt>
								<a href="<{$smarty.const.__APP__}>?c=home&uid=<{$acceptdata.uid}>"><img src="<{$smarty.const.__PUBLIC__}><{$acceptdata.face}>" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href="<{$smarty.const.__APP__}>?c=home&uid=<{$acceptdata.uid}>"><{$acceptdata.username}><i class='level lv1'></i></a>
							</dd>
							<dd>采纳率:20%</dd>
						</dl>
					</div>
					<{else}>
						<div class='ans-right'>
							<h1 style="text-align: center;color:#40B60E;">目前还没有正确回答哟^_^</h1>
						</div>
					<{/if}>
					<!-- 满意回答 -->
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong><{count($answerRows)}></strong> 条回答</p>
					<ul>
						<{section loop=$answerRows name=an}>
						<li>
							<div class='face'>
								<a href="<{$smarty.const.__APP__}>?c=home&uid=<{$answerRows[an].uid}>">
									<img src="<{$smarty.const.__PUBLIC__}><{$answerRows[an].face}>" width='48' height='48'/>
									<{$answerRows[an].username}>
								</a>
							</div>
							<div class='cons blue'>
								<p><{$answerRows[an].content}><span style='color:#888;font-size:12px'>&nbsp;&nbsp;(<{$answerRows[an].time|date_format:"%Y-%m-%d"}>)</span></p>
							</div>
								<{if isset($smarty.session.uid) && $askRow.uuid == $smarty.session.uid && $askRow.solve != 1}>
									<a href="<{$smarty.const.__APP__}>?c=answer&a=accept&anid=<{$answerRows[an].anid}>&asid=<{$smarty.get.asid}>&asuid=<{$answerRows[an].uid}>&anusername=<{$answerRows[an].username}>" class='adopt-btn'>采纳</a>
								<{/if}>
						</li>
						<{/section}>
					</ul>
					<!--<div class='page'>
						<a href="">1</a>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
					</div>-->
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
						<{if count($islike)==0}>
							<tr>
								<td><h1 style="color:#41B90E">目前没有相关的问题~！</h1></td>
							</tr>
						<{else}>
							<{foreach from=$islike item=v}>
							<tr>
								<td class='t1'><a href="<{$smarty.const.__APP__}>?c=show&asid=<{$v.asid}>"><{$v.content|substr:30}></a></td>
								<td><{$v.answer}>&nbsp;回答</td>
								<td><{$v.time|date_format:"%Y-%m-%d"}></td>
							</tr>
							<{/foreach}>
						<{/if}>
					</table>
				</div>
			</div>
		<!-- 右侧 -->
		<{include file="../Common/right.html"}>
<!-- ---右侧结束---- -->
			
		</div>

	</div>
		
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<{include file="../Common/foot.html"}>
<!--[if IE 6]>
    <script type="text/javascript" src="./Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->